<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class DropIndustryCompanyInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('company_info', function($table)
        {
            $table->dropColumn(['industry', 'nature', 'welfare','license_img_id']);
        });
        Schema::table('company_info', function($table)
        {
            $table->integer('license_img_id')->default(0)->commit("营业执照号")->after("photo_id");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
